﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FillServiceForm
{
    class Server
    {        
        private String _serverName = "";

        public String ServerName
        {
            get { return _serverName; }
            set { _serverName = value; }
        }
        private int _port = 11000;

        public int Port
        {
            get { return _port; }
            set { _port = value; }
        }

        private MessageDispatcher _dispatcher;

        public MessageDispatcher Dispatcher
        {
            get { return _dispatcher; }
            set { _dispatcher = value; }
        }

        private ClientListener _listener;

        internal ClientListener Listener
        {
            get { return _listener; }
            set { _listener = value; }
        }
        
        
        public Server()
        {
            _dispatcher = new MessageDispatcher();
        }

        public void startServer()
        {
            Listener.startListening();
            // start Socket here            
        }

        public void ConnectToClient()
        {
        }

        public void Disconnect()
        {
        }

        
        

    }
}
